package com.example.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Getter
@Setter
@Embeddable
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class ColumnsId implements Serializable {
    @Column(name = "TABLE_CATALOG")
    private String tableCatalog;
    
    @Column(name = "TABLE_SCHEMA")
    private String tableSchema;
    
    @Column(name = "TABLE_NAME")
    private String tableName;
    
    @Column(name = "COLUMN_NAME")
    private String columnName;
}